package com.mjh.partners.service.Impl;

import com.mjh.partners.mapper.ExperienceMapper;
import com.mjh.partners.pojo.Experience;
import com.mjh.partners.service.ExperienceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExperienceServiceImpl implements ExperienceService {
    @Autowired
    private ExperienceMapper experienceMapper;
    @Override
    public List<Experience> getAllExperience() {
        // TODO 自动生成的方法存根
        return this.experienceMapper.getAllExperience();
    }

    @Override
    public Experience getExperienceByEid(int eid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.getExperienceByEid(eid);
    }

    @Override
    public boolean addCommentOnEx(int eid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.addCommentOnEx(eid);
    }

    @Override
    public boolean addPraiseOnEx(int eid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.addPraiseOnEx(eid);
    }

    @Override
    public boolean deletePraiseOnEx(int eid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.deletePraiseOnEx(eid);
    }

    @Override
    public boolean addExperience(Experience experience) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.addExperience(experience);
    }

    @Override
    public boolean deleteEx(int eid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.deleteEx(eid);
    }

    @Override
    public List<Experience> getExperienceByUserid(int userid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.getExperienceByUserid(userid);
    }

    @Override
    public boolean DeCommentByEid(int eid) {
        // TODO 自动生成的方法存根
        return this.experienceMapper.DeCommentByEid(eid);
    }
}
